cmake_minimum_required(VERSION 2.8)

project (sysinfo)

ADD_DEFINITIONS(-Os -Wall --std=gnu99 -Wmissing-declarations)

SET(APP1 partool)

SET(SOURCES1
    partool.c
)

SET(APP2 productinfo)

SET(SOURCES2
    productinfo.c
)

ADD_EXECUTABLE(${APP1} ${SOURCES1})

ADD_EXECUTABLE(${APP2} ${SOURCES2})

INSTALL(TARGETS ${APP1} ${APP2} RUNTIME DESTINATION /usr/bin/)